package com.zb.controller;

import com.alibaba.fastjson.JSON;
import com.zb.client.SkuFeignClient;
import com.zb.dto.SkuDTO;
import com.zb.repository.SkuRepository;
import com.zb.serice.SkuService;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

/**
 * @date:2024/11/19 9:59 星期二
 */
@RestController
@RequestMapping("/sku")
public class TbSkuController {

    @Autowired
    private SkuService service;


    @PostMapping("/save")
    public Boolean add(Map<String,Object> map){
        boolean save = service.save(map);
        return save;
    }

   /* public Boolean SkuUpdate(@RequestParam("id") String id){
    }*/








}
